home *** CD-ROM | disk | FTP | other *** search
- ; This example demonstrates the different
- ; types of feedback you can use in the
- ; EPX780.
- ;
- ; SET COMPILER OPTIONS TO:
- ; Use Design Pin Assignments, but not
- ; Previous, Abort on no fit
-
- CHIP product NFX780_84
-
- PIN 3 CLK1 ; synchronous clock pin 1
-
- PIN a ; an input pin
-
- ; pin driven by combinatorial logic
- ; feedback from combinatorial part
- PIN o1 COMB CMBFBK
-
- ; pin driven by flip-flop
- ; feedback from combinatorial logic
- PIN o2 REG CMBFBK
-
- ; pin driven by combinatorial logic
- ; feedback from flip-flop
- PIN o3 COMB REGFBK
-
- ; pin driven by flip-flop
- ; feedback from flip-flop
- PIN o4 REG REGFBK
-
- EQUATIONS
- ; the o1 combinatorial output is
- ; the logical AND of the combinatorial
- ; output of o2 and the combinatorial
- ; output of o3
- o1 = o2.FB * o3.IO
-
- ; the o2 combinatorial output and
- ; the input to the o2 flip-flop is
- ; the logical AND of the flip-flop
- ; output of o3 and the flip-flop
- ; output of o4
- o2 := o3.FB * o4.IO
-
- ; the o3 combinatorial output and
- ; the input to the o3 flip-flop is
- ; the logical AND of the flip-flop
- ; output of o4 and the combinatorial
- ; output of o1
- o3 = o4.FB * o1.IO
-
- ; the o4 combinatorial output and
- ; the input to the o4 flip-flop is
- ; the logical AND of the combinatorial
- ; output of o1 and the flip-flop
- ; output of o2
- o4 := o1.FB * o2.IO
-
- ; all the flip-flops are clocked with
- ; the synchronous clock. Note that we
- ; don't need a clock for o1 since both
- ; its output and feedback functions are
- ; both combinatorial.
- o[2:4].CLKF = CLK1
-